@(formLogin: Form[Login]) 
@import helper._ 
@import helper.twitterBootstrap._

@mainLogin("Login") {
	
	<div class="row-fluid">
		<div id="TelaDelogin" class="span4 offset4">
		     @form(action = routes.Application.autenticar(), 'id -> "formDeLogin"){
			<fieldset>
				<legend>
					<h3>Login</h3>
				</legend>
				
				@if(flash.containsKey("sucesso")){
					<div class="alert alert-success">
						<a class="close" data-dismiss="alert">×</a>
						<b>@flash.get("sucesso")</b>
					</div>
				}
				
				@if(formLogin.hasGlobalErrors) { 
	                <div class="alert alert-error">
	                	<a class="close" data-dismiss="alert">×</a>
	                    <b>@formLogin.globalError.message</b>
	                </div>
            	}
			
				@inputText(formLogin("Login"), '_label -> "Login", 'placeholder ->"Login", 'id -> "loginForm") 
				@inputPassword(formLogin("Senha"), '_label -> "Senha", 'placeholder -> "Senha", 'id -> "senhaForm") 
				
				<input type="submit" class="btn btn-primary" value="Enviar" /> 
				<a href="/jogador/inserirCadastro" class="btn btn-primary">Cadastre-se</a>
			</fieldset>
		</div>
	</div>
	} 
}
